package org.dg.iag.query;

import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias("query")
public class XQueryPost {
	@XStreamAsAttribute
	private String xmlns;
	private String text;
	private List<Property> properties;
	
	public String getXmlns() {
		return xmlns;
	}

	public void setXmlns(String xmlns) {
		this.xmlns = xmlns;
	}



	public String getText() {
		return text;
	}



	public void setText(String text) {
		this.text = text;
	}



	public List<Property> getProperties() {
		return properties;
	}



	public void setProperties(List<Property> properties) {
		this.properties = properties;
	}



	@XStreamAlias("property")
	public class Property {
		String name;
		String value;
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getValue() {
			return value;
		}
		public void setValue(String value) {
			this.value = value;
		}
		public Property(String name, String value) {
			super();
			this.name = name;
			this.value = value;
		}
		
	}
}
